home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
help_ai
/
isnan
< prev
next >
Wrap
Text File
|
1995-02-18
|
603b
|
26 lines
isnan:
Syntax: isnan ( A )
Description:
isnan returns TRUE (1) if A is a NaN (Not A Number). If A is a
vector or a matrix the test is performed element-by-element,
and a matrix the same size as A is returned.
NaNs can be create by the 0/0 operation on most computers.
Example:
> a = [1, 2, 3; 4, 5, nan(); 7, 8, 9]
a =
1 2 3
4 5 nan0x80000000
7 8 9
> isnan (a)
0 0 0
0 0 1
0 0 0
See Also: inf, isinf, finite, nan